package com.gitee.swsk33.logspringbootstarter.autoconfigure;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.autoconfigure.AutoConfiguration;

/**
 * <code>@AutoConfiguration</code>注解是2.7.0版本开始新推出的注解，专用于Starter的自动配置类中<br>
 * 此外它结合了<code>@AutoConfigureAfter</code>和<code>@AutoConfigureBefore</code>的功能
 */
@Slf4j
@AutoConfiguration(before = LogServiceAutoConfiguration.class, after = TestInitializeAutoConfiguration.class)
public class TestAutoConfigurationAnnotation implements InitializingBean {

	@Override
	public void afterPropertiesSet() throws Exception {
		log.info("TestAutoConfigurationAnnotation已加载！");
	}

}